using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Query;

namespace NBusiness.Data.Providers.SqlServer.Query
{
    public class SqlLiteral : SqlEvaluatable
    {
        private string _literal;

        public SqlLiteral(string literal)
        {
            _literal = literal;
        }

        public override string ToSql()
        {
            return ToSql(new SqlQueryContext());
        }

        public override string ToSql(IQueryContext context)
        {
            return _literal;
        }
    }
}
